{template 'common/header-gw'}
<ol class="breadcrumb">
	<li><a href="./?refresh"><i class="fa fa-home"></i></a></li>
	<li class=""><a href="{url 'system/welcome'}">系统</a></li>
	<li class="active">啦啦外卖一键更新</li>
</ol>
<script src="./resource/script/update.min.js" type="text/javascript"></script>
<link href="./resource/style/update.css" type="text/css" rel="stylesheet">
<ul class="nav nav-tabs">
	<li class="active"><a href="#"><strong>增值升级服务</strong></a></li>
</ul>

<div style="width:920px; margin:20px auto 20px auto; text-align:center;"><img src="/web/resource/images/lala.icon.2.jpg" /></div>
<div style="width:922px;height:202px; margin-left:20px; margin-top:50px; margin-bottom:40px; border:1px solid #FFFFFF;-webkit-box-shadow:0px 0px 3px;-moz-box-shadow:0px 0px 3px;box-shadow: 0px 0px 3px;behavior: url(/PIE.htc);">

<!--升级主要内容-->
{if $op == 'display'}
{if $ver == "_VERSION"}
<div style="width:719px; line-height:200px; text-align:center; float:left;border-right:1px dotted #CCCCCC; color: #666666">系统检测到您还未安装该模块，请到论坛下载最新的应用模块安装即可！</div>
<div style="width:200px; line-height:200px; text-align:center; float:left"><a href="http://bbs.52jscn.com/forum-225-1.html" target="_blank">【立即下载】</a></div>
{else}
<div style="width:719px; border-right:1px dotted #CCCCCC; float:left;height:200px; overflow:hidden;">

<div style="width:260px; height:200px; float:left; text-align:center;border-right:1px dotted #CCCCCC;">
<div style="margin-top:20px; color:#999999">当前啦啦外卖系统版本</div>
<div style="margin-top:35px;">V<span style="font-size:38px; color:#344758">7.{$ver}</span></div>
</div>

{if $lastver == $ver}<li style="margin-top:86px; text-align:center; line-height:25px;">恭喜您：您的系统已经是最新，请关注新的补丁包</li></div>{/if}

{if $lastver != $ver}<li style="margin-top:70px; text-align:center; line-height:25px;">发现新补丁：<strong style="color:#344758">V7.{$lastver}</strong></li>
{if $domain_time == '0'}<li style="margin-top:10px; text-align:center; line-height:25px; color:#999999">您未取得该程序的商业版权，无法一键升级系统<li>
</div>
<div style="width:200px; float:left;height:200px; text-align:center; padding-top:90px;">
<a href="http://weizan.52jscn.com/shouquan.html" target="_blank">正式运营请购买商业授权</a>
</div>{/if}
{if $domain_time != '0'}<li style="margin-top:10px; text-align:center; line-height:25px; color:#999999">您是我们的商业授权客户&nbsp;我们将为您免费更新至：{php echo date("Y年m月d日", $domain_time);}<li>
</div>
<div style="width:200px; float:left;height:200px;">

<button onclick="chanage();" style="width:100px; height:60px; margin-left:55px; margin-top:70px; ">立即升级</button>
<script type="text/javascript">
		function chanage()
		  {
			location = "{php echo create_url('cloud/52jscn_lala',array('op'=>'chanage'));}";
		}
</script></div>{/if}
{/if}
{/if}


{/if}
<!--升级主要内容-->
<!---->{if $op == 'chanage'}
<div style=" float:left">
<div style="width:450px;line-height:40px; text-align:center;">V{$lastver}更新内容</div>
<div style="width:450px;min-height:140px; max-height:140px;overflow: auto; padding-left:25px; color: #999999">{$cinfo}</div>
</div>

<div style="text-align:center; padding-top:40px;float:left">

<li style="line-height:60px; width:470px;">您需要升级&nbsp;&nbsp;<span style=" color:#344758; font-size:36px">V{$lastver}</span>&nbsp;&nbsp;吗？<br /><button onclick="disp_confirm();" class="btn btn-primary" >点击升级</button>
	<script type="text/javascript">
		function disp_confirm()
		  {
		  var r=confirm("确定已备份好系统，并更新系统到最新版本吗？")
		  if (r==true)
			{
			location = "{php echo create_url('cloud/52jscn_lala',array('op'=>'update'));}";
			}
		  }
		function alert(title) {
            $("#windowcenter").slideToggle("slow");
            $("#txt").html(title);
            setTimeout('$("#windowcenter").slideUp(500)', 4000);
        } 
		</script></li>
{/if}
</div>
<!---->


{template 'common/footer-gw'}